package org.example.passagerapi.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "pay-service")
public interface IFeignClient {
    @RequestMapping(value = "/provider/test", method = RequestMethod.GET)
    String callPay();

    @RequestMapping(value="/provider/test2", method = RequestMethod.POST)
    String callPay2(@RequestBody String name);

    @RequestMapping(value="/provider/test3", method = RequestMethod.POST)
    String callPay3(@RequestParam("name") String name);
}
